import { StorageImpl } from "./Impl.interface";

export class LocalStorage implements StorageImpl {
  set(key: string, value: string) {
    localStorage.setItem(key, value);
  }
  get(key: string) {
    return localStorage.getItem(key);
  }
  clear() {
    localStorage.clear();
  }
  remove(key: string) {
    localStorage.removeItem(key);
  }
}
